package com.lanchetech.dao;

import com.lanchetech.bean.request.BonusCountReq;import com.lanchetech.bean.vo.BonusCountVO;import com.lanchetech.entity.BonusCount;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List;

@Mapper
public interface BonusCountMapper {
    int deleteByPrimaryKey(Long id);

    int insert(BonusCount record);

    int insertSelective(BonusCount record);

    BonusCount selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BonusCount record);

    int updateByPrimaryKey(BonusCount record);

    int subOneCountById(@Param("id") Long id);

    List<BonusCount> findAll();

    BonusCount findOneBySpuId(@Param("spuId") Long spuId);

    List<BonusCountVO> findAllPage(BonusCountReq req);

    BonusCount findOneByRewardType(@Param("rewardType")Byte rewardType);


}